import { post, put, get,del } from '@/utils/hettpUtils/httpRequest'

export const dicTypeColumns = [
    {
        title: "名称",
        dataIndex: "name",
    },
    
    {
        title: "唯一标示",
        dataIndex: "uniqueCode",
    },
    {
        title: "描述",
        dataIndex: "description",
    },  
    {
        align: 'center',
        title: "创建时间",
        dataIndex: "createTime",
        sorter: true,
    },
    {
        align: 'center',
        title: "状态",
        dataIndex: "status",
        scopedSlots: { customRender: "status" },
    },
    {
        align: 'center',
        width:'160px',
        title: "操作",
        dataIndex: "action",
        scopedSlots: { customRender: "action" },
    },
];

export const addDicType = (parameter) => post('api/sysDicType/add', parameter)
export const deleteDicType = (parameter) => del('api/sysDicType/delete', parameter)
export const updateDicType = (parameter) => put('api/sysDicType/update', parameter)
export const queryDicTypePages = (parameter) => post('api/sysDicType/pages', parameter)
export const getDicType = (parameter) => get('api/sysDicType/get', parameter)
export const queryDicTypeList = (parameter) => get('api/sysDicType/list', parameter)
